<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <body>

        <h:form>
            <h1><h:outputText value="List"/></h1>
            <p:dataTable value="#{experiments.transactions}" var="item" paginator="true" rows="20">
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Id"/>
                    </f:facet>
                    <h:outputText value="#{item.id}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="CompanyDenomination"/>
                    </f:facet>
                    <h:outputText value="#{item.companyDenomination}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="MpowerAccountNumber"/>
                    </f:facet>
                    <h:outputText value="#{item.mpowerAccountNumber}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="TransactionDate"/>
                    </f:facet>
                    <h:outputText value="#{item.transactionDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Credit"/>
                    </f:facet>
                    <h:outputText value="#{item.credit}"/>
                </p:column>
            </p:dataTable>
        </h:form>
    </body>
</html>
